package com.xingkeduo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @Description TODO
 * @Date 2019/4/17 17:31
 * @Created 情绪十分不稳定的Shadow
 */

@FeignClient(value = "business-user")
public interface BusinessuserFeignService {

    //根据店铺ID查询 所属发型师
    @PostMapping("/craftsman/shop/getshop")
    String getshop(@RequestBody List<Long> staffIds, @RequestParam("type") String type);

    @PostMapping("/craftsman/shop/shopIds")
    String getStaffInfoByShopIds(@RequestBody List<Long> shopIds);

    //根据店铺Id 发型师Id集合 查询 发型师对应sku & 价格
    @PostMapping("/craftsman/service/shopService/list/{shopId}")
    String getCraftsmanServiceList(@PathVariable("shopId") String shopId, @RequestBody List<Long> craftsmanIds);

    //根据发型师Id 集合 获取 对应发型师配置的服务Id
    @PostMapping("/craftsman/service/serviceids")
    String getServiceids(@RequestBody List<Long> staffIds);

    //根据店铺ID和分公司ID获取店铺经理和总经理信息
    @GetMapping("/craftsman/shop/getManagerList")
    String getManagerList(@RequestParam("companyId") Long companyId ,@RequestParam("shopId") Long shopId);


    //根据发型师ID真实姓名艺名返回发型师列表
    @GetMapping("/craftsman/list/condition/{condition}")
    String getCraftsmanNameList(@PathVariable("condition") String condition);

}
